<html>
    <head>
        <title>正在为您跳转到敦煌进行支付...</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    </head>
    <body>
        <div>正在为您跳转到敦煌进行支付...</div>
         <form action="https://www.dhpay.com/merchant/web/cashier" method="post">
            <input type="hidden" name="merchant_id" value="<?php echo $_POST['merchant_id']; ?>" class="dhpay-radio" />
            <input type="hidden" name="invoice_id" value="<?php echo $_POST['invoice_id']; ?>" class="dhpay-radio" />
            <input type="hidden" name="order_no" value="<?php echo $this->bill->Id; ?>" class="dhpay-radio" />
            <input type="hidden" name="currency" value="<?php echo $_POST['currency']; ?>" class="dhpay-radio" />
            <input type="hidden" name="amount" value="<?php echo $this->usmoney; ?>" class="dhpay-radio" />
            <input type="hidden" name="buyer_email" value="<?php echo $_POST['buyer_email']; ?>" class="dhpay-radio" />
        
            <input type="hidden" name="return_url" value="<?php echo "http://".$_SERVER['HTTP_HOST']."/pay/callback?pid=".$this->bill->Id ?>" class="dhpay-radio" />
            <input type="hidden" name="remark" value="<?php echo $_POST['remark']; ?>" class="dhpay-radio" />
            <input type="hidden" name="shipping_country" value="<?php echo $_POST['shipping_country']; ?>" class="dhpay-radio" />
            <input type="hidden" name="first_name" value="<?php echo $_POST['first_name']; ?>" class="dhpay-radio" />
            <input type="hidden" name="last_name" value="<?php echo $_POST['last_name']; ?>" class="dhpay-radio" />
            <input type="hidden" name="product_name" value="<?php echo $_POST['product_name']; ?>" class="dhpay-radio" />
            <input type="hidden" name="product_price" value="<?php echo $_POST['product_price']; ?>" class="dhpay-radio" />
            <input type="hidden" name="product_quantity" value="<?php echo $_POST['product_quantity']; ?>" class="dhpay-radio" />
            <input type="hidden" name="address_line" value="<?php echo $_POST['address_line']; ?>" class="dhpay-radio" />
            <input type="hidden" name="city" value="<?php echo $_POST['city']; ?>" class="dhpay-radio" />
            <input type="hidden" name="country" value="<?php echo $_POST['country']; ?>" class="dhpay-radio" />
            <input type="hidden" name="state" value="<?php echo $_POST['state']; ?>" class="dhpay-radio" />
            <input type="hidden" name="zipcode" value="<?php echo $_POST['zipcode']; ?>" class="dhpay-radio" />
            <input type="hidden" name="hash" value="<?php echo $this->hash; ?>" class="dhpay-radio" />

            <input type="submit" id="pay" value="支付" style="display:none" />
        </form>
    </body>
    <script type="text/javascript">
        setTimeout(function(){
            document.getElementById('pay').click();
        },0);
    </script>
</html>

